<h1>Articulos List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Categoria</th>
      <th>Tipo</th>
      <th>Titulo</th>
      <th>Ubicacion</th>
      <th>Descripcion</th>
      <th>Forma pago</th>
      <th>Precio</th>
      <th>Publicado</th>
      <th>Destacado</th>
      <th>Foto</th>
      <th>Foto x1</th>
      <th>Foto y1</th>
      <th>Foto x2</th>
      <th>Foto y2</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($articulos as $articulo): ?>
    <tr>
      <td><a href="<?php echo url_for('articulo/show?id='.$articulo->getId()) ?>"><?php echo $articulo->getId() ?></a></td>
      <td><?php echo $articulo->getCategoriaId() ?></td>
      <td><?php echo $articulo->getTipoId() ?></td>
      <td><?php echo $articulo->getTitulo() ?></td>
      <td><?php echo $articulo->getUbicacion() ?></td>
      <td><?php echo $articulo->getDescripcion() ?></td>
      <td><?php echo $articulo->getFormaPago() ?></td>
      <td><?php echo $articulo->getPrecio() ?></td>
      <td><?php echo $articulo->getPublicado() ?></td>
      <td><?php echo $articulo->getDestacado() ?></td>
      <td><?php echo $articulo->getFoto() ?></td>
      <td><?php echo $articulo->getFotoX1() ?></td>
      <td><?php echo $articulo->getFotoY1() ?></td>
      <td><?php echo $articulo->getFotoX2() ?></td>
      <td><?php echo $articulo->getFotoY2() ?></td>
      <td><?php echo $articulo->getCreatedAt() ?></td>
      <td><?php echo $articulo->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('articulo/new') ?>">New</a>
